@extends('layouts.admin')

@section('title', '修改')

@section('content')
    <div class="container">
        {!! Form::model($category, array('route' => 'admin.category.update', 'files'=> true, 'method' => 'PUT')) !!}
            <div class="form-group">
                {!! Form::label('title', '标题（必填）') !!}
                {!! Form::text('title',$category->title,['class'=>'form-control', 'placeholder' => '分类的标题?']) !!}
            </div>
            <div class="form-group">
                {!! Form::label('image', '特色图片（必填）') !!}
                {!! Form::file('image') !!}
                <p class="help-block">首页滚动图片</p>
                <img class="img-responsive" src="{{ asset($category->image_url) }}" />
            </div>
            <div class="form-group">
                {!! Form::label('big_image', '头部大图（必填）') !!}
                {!! Form::file('big_image') !!}
                <p class="help-block">Product Finder显示在上方的大图</p>
                <img class="img-responsive" src="{{ asset($category->big_image_url) }}" />
            </div>
            <div class="form-group">
                {!! Form::label('description', '描述（可选）') !!}
                {!! Form::text('description',$category->description,['class'=>'form-control', 'placeholder' => '分类标题']) !!}
            </div>
            {!! Form::submit('更新',['class'=>'btn btn-info']) !!}
        {!!Form::close() !!}
    </div>
@stop